package com.bmit.clusterspring.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ClusterLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ClusterLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLogIdIsNull() {
            addCriterion("log_id is null");
            return (Criteria) this;
        }

        public Criteria andLogIdIsNotNull() {
            addCriterion("log_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogIdEqualTo(Long value) {
            addCriterion("log_id =", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotEqualTo(Long value) {
            addCriterion("log_id <>", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdGreaterThan(Long value) {
            addCriterion("log_id >", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdGreaterThanOrEqualTo(Long value) {
            addCriterion("log_id >=", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdLessThan(Long value) {
            addCriterion("log_id <", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdLessThanOrEqualTo(Long value) {
            addCriterion("log_id <=", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdIn(List<Long> values) {
            addCriterion("log_id in", values, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotIn(List<Long> values) {
            addCriterion("log_id not in", values, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdBetween(Long value1, Long value2) {
            addCriterion("log_id between", value1, value2, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotBetween(Long value1, Long value2) {
            addCriterion("log_id not between", value1, value2, "logId");
            return (Criteria) this;
        }

        public Criteria andIpAddressIsNull() {
            addCriterion("ip_address is null");
            return (Criteria) this;
        }

        public Criteria andIpAddressIsNotNull() {
            addCriterion("ip_address is not null");
            return (Criteria) this;
        }

        public Criteria andIpAddressEqualTo(String value) {
            addCriterion("ip_address =", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressNotEqualTo(String value) {
            addCriterion("ip_address <>", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressGreaterThan(String value) {
            addCriterion("ip_address >", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressGreaterThanOrEqualTo(String value) {
            addCriterion("ip_address >=", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressLessThan(String value) {
            addCriterion("ip_address <", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressLessThanOrEqualTo(String value) {
            addCriterion("ip_address <=", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressLike(String value) {
            addCriterion("ip_address like", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressNotLike(String value) {
            addCriterion("ip_address not like", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressIn(List<String> values) {
            addCriterion("ip_address in", values, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressNotIn(List<String> values) {
            addCriterion("ip_address not in", values, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressBetween(String value1, String value2) {
            addCriterion("ip_address between", value1, value2, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressNotBetween(String value1, String value2) {
            addCriterion("ip_address not between", value1, value2, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andAlgorithmIsNull() {
            addCriterion("algorithm is null");
            return (Criteria) this;
        }

        public Criteria andAlgorithmIsNotNull() {
            addCriterion("algorithm is not null");
            return (Criteria) this;
        }

        public Criteria andAlgorithmEqualTo(String value) {
            addCriterion("algorithm =", value, "algorithm");
            return (Criteria) this;
        }

        public Criteria andAlgorithmNotEqualTo(String value) {
            addCriterion("algorithm <>", value, "algorithm");
            return (Criteria) this;
        }

        public Criteria andAlgorithmGreaterThan(String value) {
            addCriterion("algorithm >", value, "algorithm");
            return (Criteria) this;
        }

        public Criteria andAlgorithmGreaterThanOrEqualTo(String value) {
            addCriterion("algorithm >=", value, "algorithm");
            return (Criteria) this;
        }

        public Criteria andAlgorithmLessThan(String value) {
            addCriterion("algorithm <", value, "algorithm");
            return (Criteria) this;
        }

        public Criteria andAlgorithmLessThanOrEqualTo(String value) {
            addCriterion("algorithm <=", value, "algorithm");
            return (Criteria) this;
        }

        public Criteria andAlgorithmLike(String value) {
            addCriterion("algorithm like", value, "algorithm");
            return (Criteria) this;
        }

        public Criteria andAlgorithmNotLike(String value) {
            addCriterion("algorithm not like", value, "algorithm");
            return (Criteria) this;
        }

        public Criteria andAlgorithmIn(List<String> values) {
            addCriterion("algorithm in", values, "algorithm");
            return (Criteria) this;
        }

        public Criteria andAlgorithmNotIn(List<String> values) {
            addCriterion("algorithm not in", values, "algorithm");
            return (Criteria) this;
        }

        public Criteria andAlgorithmBetween(String value1, String value2) {
            addCriterion("algorithm between", value1, value2, "algorithm");
            return (Criteria) this;
        }

        public Criteria andAlgorithmNotBetween(String value1, String value2) {
            addCriterion("algorithm not between", value1, value2, "algorithm");
            return (Criteria) this;
        }

        public Criteria andDataShape0IsNull() {
            addCriterion("data_shape_0 is null");
            return (Criteria) this;
        }

        public Criteria andDataShape0IsNotNull() {
            addCriterion("data_shape_0 is not null");
            return (Criteria) this;
        }

        public Criteria andDataShape0EqualTo(Integer value) {
            addCriterion("data_shape_0 =", value, "dataShape0");
            return (Criteria) this;
        }

        public Criteria andDataShape0NotEqualTo(Integer value) {
            addCriterion("data_shape_0 <>", value, "dataShape0");
            return (Criteria) this;
        }

        public Criteria andDataShape0GreaterThan(Integer value) {
            addCriterion("data_shape_0 >", value, "dataShape0");
            return (Criteria) this;
        }

        public Criteria andDataShape0GreaterThanOrEqualTo(Integer value) {
            addCriterion("data_shape_0 >=", value, "dataShape0");
            return (Criteria) this;
        }

        public Criteria andDataShape0LessThan(Integer value) {
            addCriterion("data_shape_0 <", value, "dataShape0");
            return (Criteria) this;
        }

        public Criteria andDataShape0LessThanOrEqualTo(Integer value) {
            addCriterion("data_shape_0 <=", value, "dataShape0");
            return (Criteria) this;
        }

        public Criteria andDataShape0In(List<Integer> values) {
            addCriterion("data_shape_0 in", values, "dataShape0");
            return (Criteria) this;
        }

        public Criteria andDataShape0NotIn(List<Integer> values) {
            addCriterion("data_shape_0 not in", values, "dataShape0");
            return (Criteria) this;
        }

        public Criteria andDataShape0Between(Integer value1, Integer value2) {
            addCriterion("data_shape_0 between", value1, value2, "dataShape0");
            return (Criteria) this;
        }

        public Criteria andDataShape0NotBetween(Integer value1, Integer value2) {
            addCriterion("data_shape_0 not between", value1, value2, "dataShape0");
            return (Criteria) this;
        }

        public Criteria andDataShape1IsNull() {
            addCriterion("data_shape_1 is null");
            return (Criteria) this;
        }

        public Criteria andDataShape1IsNotNull() {
            addCriterion("data_shape_1 is not null");
            return (Criteria) this;
        }

        public Criteria andDataShape1EqualTo(Integer value) {
            addCriterion("data_shape_1 =", value, "dataShape1");
            return (Criteria) this;
        }

        public Criteria andDataShape1NotEqualTo(Integer value) {
            addCriterion("data_shape_1 <>", value, "dataShape1");
            return (Criteria) this;
        }

        public Criteria andDataShape1GreaterThan(Integer value) {
            addCriterion("data_shape_1 >", value, "dataShape1");
            return (Criteria) this;
        }

        public Criteria andDataShape1GreaterThanOrEqualTo(Integer value) {
            addCriterion("data_shape_1 >=", value, "dataShape1");
            return (Criteria) this;
        }

        public Criteria andDataShape1LessThan(Integer value) {
            addCriterion("data_shape_1 <", value, "dataShape1");
            return (Criteria) this;
        }

        public Criteria andDataShape1LessThanOrEqualTo(Integer value) {
            addCriterion("data_shape_1 <=", value, "dataShape1");
            return (Criteria) this;
        }

        public Criteria andDataShape1In(List<Integer> values) {
            addCriterion("data_shape_1 in", values, "dataShape1");
            return (Criteria) this;
        }

        public Criteria andDataShape1NotIn(List<Integer> values) {
            addCriterion("data_shape_1 not in", values, "dataShape1");
            return (Criteria) this;
        }

        public Criteria andDataShape1Between(Integer value1, Integer value2) {
            addCriterion("data_shape_1 between", value1, value2, "dataShape1");
            return (Criteria) this;
        }

        public Criteria andDataShape1NotBetween(Integer value1, Integer value2) {
            addCriterion("data_shape_1 not between", value1, value2, "dataShape1");
            return (Criteria) this;
        }

        public Criteria andClusterNumIsNull() {
            addCriterion("cluster_num is null");
            return (Criteria) this;
        }

        public Criteria andClusterNumIsNotNull() {
            addCriterion("cluster_num is not null");
            return (Criteria) this;
        }

        public Criteria andClusterNumEqualTo(Integer value) {
            addCriterion("cluster_num =", value, "clusterNum");
            return (Criteria) this;
        }

        public Criteria andClusterNumNotEqualTo(Integer value) {
            addCriterion("cluster_num <>", value, "clusterNum");
            return (Criteria) this;
        }

        public Criteria andClusterNumGreaterThan(Integer value) {
            addCriterion("cluster_num >", value, "clusterNum");
            return (Criteria) this;
        }

        public Criteria andClusterNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("cluster_num >=", value, "clusterNum");
            return (Criteria) this;
        }

        public Criteria andClusterNumLessThan(Integer value) {
            addCriterion("cluster_num <", value, "clusterNum");
            return (Criteria) this;
        }

        public Criteria andClusterNumLessThanOrEqualTo(Integer value) {
            addCriterion("cluster_num <=", value, "clusterNum");
            return (Criteria) this;
        }

        public Criteria andClusterNumIn(List<Integer> values) {
            addCriterion("cluster_num in", values, "clusterNum");
            return (Criteria) this;
        }

        public Criteria andClusterNumNotIn(List<Integer> values) {
            addCriterion("cluster_num not in", values, "clusterNum");
            return (Criteria) this;
        }

        public Criteria andClusterNumBetween(Integer value1, Integer value2) {
            addCriterion("cluster_num between", value1, value2, "clusterNum");
            return (Criteria) this;
        }

        public Criteria andClusterNumNotBetween(Integer value1, Integer value2) {
            addCriterion("cluster_num not between", value1, value2, "clusterNum");
            return (Criteria) this;
        }

        public Criteria andRunTimeIsNull() {
            addCriterion("run_time is null");
            return (Criteria) this;
        }

        public Criteria andRunTimeIsNotNull() {
            addCriterion("run_time is not null");
            return (Criteria) this;
        }

        public Criteria andRunTimeEqualTo(Integer value) {
            addCriterion("run_time =", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeNotEqualTo(Integer value) {
            addCriterion("run_time <>", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeGreaterThan(Integer value) {
            addCriterion("run_time >", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("run_time >=", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeLessThan(Integer value) {
            addCriterion("run_time <", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeLessThanOrEqualTo(Integer value) {
            addCriterion("run_time <=", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeIn(List<Integer> values) {
            addCriterion("run_time in", values, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeNotIn(List<Integer> values) {
            addCriterion("run_time not in", values, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeBetween(Integer value1, Integer value2) {
            addCriterion("run_time between", value1, value2, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("run_time not between", value1, value2, "runTime");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIsNull() {
            addCriterion("gmt_create is null");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIsNotNull() {
            addCriterion("gmt_create is not null");
            return (Criteria) this;
        }

        public Criteria andGmtCreateEqualTo(Date value) {
            addCriterion("gmt_create =", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotEqualTo(Date value) {
            addCriterion("gmt_create <>", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateGreaterThan(Date value) {
            addCriterion("gmt_create >", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("gmt_create >=", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateLessThan(Date value) {
            addCriterion("gmt_create <", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateLessThanOrEqualTo(Date value) {
            addCriterion("gmt_create <=", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIn(List<Date> values) {
            addCriterion("gmt_create in", values, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotIn(List<Date> values) {
            addCriterion("gmt_create not in", values, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateBetween(Date value1, Date value2) {
            addCriterion("gmt_create between", value1, value2, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotBetween(Date value1, Date value2) {
            addCriterion("gmt_create not between", value1, value2, "gmtCreate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}